0cfa32e4ea35bb8586b6fa91ff3961d5af14619a,community/kernel/src/test/java/org/neo4j/kernel/impl/storemigration/StoreUpgraderTest.java,StoreUpgraderTest,shouldLeaveACopyOfOriginalStoreFilesInBackupDirectory,#,70

Before Change


        File workingDirectory = new File( "target/" + StoreUpgraderTest.class.getSimpleName() );
        prepareSampleLegacyDatabase( workingDirectory );

        HashMap config = defaultConfig();
        config.put( Config.ALLOW_STORE_UPGRADE, "true" );

        new StoreUpgrader( config ).attemptUpgrade( new File( workingDirectory, NeoStore.DEFAULT_NAME ).getPath() );

After Change


        File workingDirectory = new File( "target/" + StoreUpgraderTest.class.getSimpleName() );
        prepareSampleLegacyDatabase( workingDirectory );

        new StoreUpgrader( defaultConfig(), new AlwaysAllowedUpgradeConfiguration() ).attemptUpgrade( new File( workingDirectory, NeoStore.DEFAULT_NAME ).getPath() );

        verifyFilesHaveSameContent( findOldFormatStoreDirectory(), new File( workingDirectory, "upgrade_backup" ) );
    }